package icu.zqyhdm.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import icu.zqyhdm.blog.entity.User;
import icu.zqyhdm.blog.vo.*;
import org.springframework.cache.annotation.Cacheable;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Description
 * @Author lifu
 * @Date 2021/6/23 9:39
 */
public interface UserService extends IService<User> {
    void register(UserRegisterVo userRegisterVo);

    String phoneLogin(UserPhoneLoginVo userPhoneLoginVo);

    String accountLogin(UserAccountLoginVo userPhoneLoginVo, HttpServletRequest request);

    void send(String phone);

    UserDetailVo getUserDetail(Integer userId);

    Map<String, String> adminLogin(AdminLoginVo adminLoginVoLoginVo);
}
